package com.neuedu.wemall.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.neuedu.wemall.dao.entity.Favorite;
import com.neuedu.wemall.service.IFavoriteService;
import com.neuedu.wemall.dao.mapper.FavoriteMapper;
@Service("favoriteService")
public class FavoriteServiceImpl extends ServiceImpl<FavoriteMapper, Favorite> implements IFavoriteService {

    @Override
    public Page<Favorite> selectFavoriteList(int pageNum, int pageSize, int userId) {
        Page<Favorite> page = new Page<>(pageNum, pageSize);
        return baseMapper.selectFavoriteList(userId,page);
    }
}